//
// Created by 罗俊华 on 2022/2/9.
//

#ifndef CPP_LEARNING_ACTOR_H
#define CPP_LEARNING_ACTOR_H

#include <string>
#include <vector>
#include <iterator>
#include <algorithm>
#include <iostream>
#include "Camera.h"

using std::string;
using std::copy;
using std::back_insert_iterator;
using std::vector;
using std::for_each;
using std::cout;


class Actor {
    vector<Camera *> cameraList;
public:


    Actor(Camera *camera, int size) {
//        back_insert_iterator<vector<Camera *> > camera_iterator(cameraList);

Camera * end = camera + size;
        for (; camera < end; ++camera) {
            cout << "指针：" << camera << "，终点：" << camera + size << endl;
            cameraList.insert(cameraList.end(), camera);
        }


//        copy(camera, camera + size, camera_iterator);
    }

    void show() {
        for_each(cameraList.begin(), cameraList.end(), output);
    }


};


#endif //CPP_LEARNING_ACTOR_H
